import { Injectable } from '@nestjs/common';
import { Repository } from "typeorm";
import { Category } from "../../entities/category.entity";
import { InjectRepository } from '@nestjs/typeorm';
import { TypeOrmCrudService } from '@nestjsx/crud-typeorm';

@Injectable()
export class CategoryService extends TypeOrmCrudService<Category>{
  constructor(
    @InjectRepository(Category)
    private readonly cateRepository: Repository<Category>
  ){
    super(cateRepository);
  }
}
